package demo2;

/**
 * 模仿Controller结果集
 * @author ZhouWeiBo
 * @create 2022/6/6
 */
public class Result {

    private String msg;
    private Boolean success;

    public Result(String msg, Boolean success) {
        this.msg = msg;
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    @Override
    public String toString() {
        return "Result{" +
                "msg='" + msg + '\'' +
                ", success=" + success +
                '}';
    }
}
